package modles

import "gorm.io/gorm"

// 用户表
type User struct {
	gorm.Model
	Username string
	Password string
}

// 角色表
type Role struct {
	gorm.Model
	RoleName string
}

// 用户角色表
type UserRole struct {
	gorm.Model
	Uid int
	Rid int
}

// 权限表
type Node struct {
	gorm.Model
	NodeName string
}

// 角色权限表
type RoleNode struct {
	gorm.Model
	Rid int
	Nid int
}
type UserList struct {
	Username string
	Password string
	RoleName string
	NodeName string
}
